package com.xbk.seckill.goods.domain.event;

import com.alibaba.fastjson.annotation.JSONField;
import com.xbk.seckill.common.model.event.SeckillBaseEvent;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 秒杀商品事件
 *
 * @author xiexu
 * @date 2025/2/5 15:17
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SeckillGoodsEvent extends SeckillBaseEvent {

    /**
     * 活动id
     */
    private Long activityId;

    public SeckillGoodsEvent(Long id,
                             Long activityId,
                             Integer status,
                             @JSONField(name = "destination") String topicEvent) {
        super(id, status, topicEvent);
        this.activityId = activityId;
    }

}
